package com.syq.play;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

import com.syq.play.api.FolderApi;
import com.syq.play.api.MediaStoreApi;
import com.syq.play.api.SongApi;
import com.syq.play.db.DBAdapter;
import com.syq.play.db.entity.SongManager;
import com.syq.play.impl.FolderImpl;
import com.syq.play.impl.MediaStoreImpl;
import com.syq.play.impl.SongImpl;
import com.syq.play.model.MediaModel;

import android.app.Application;
import android.content.Context;
import android.provider.MediaStore.Audio.Media;

public class AppContent extends Application{
	private static final String TAG="AppContent";
	public static FolderApi mFolder;
	public static SongApi mSong;
	public static int playIndex=0;
	public static Context context = null;
	public static int playId=-1;
	private DBAdapter dbAdapter;
	public  static List<MediaModel> listData=new ArrayList<MediaModel>();
	
	@Override
	public void onCreate() {
		super.onCreate();
		context=this;
		dbAdapter=new DBAdapter(context);
		dbAdapter.openAndIntiModeManager(SongManager.getInstance());
		mFolder=FolderImpl.getInstance(context);
		mSong=SongImpl.getInstance(context);
	}
}
